package com.automannn.dubbo.SpiTest;

import com.automannn.dubbo.handleExtention.HandlerTest;
import org.apache.dubbo.common.extension.ExtensionLoader;

/**
 * @author automannn
 * @Date 2023/5/23
 */
public class SpiTest {
    public static void main(String[] args) {
        HandlerTest handlerTest = ExtensionLoader.getExtensionLoader(HandlerTest.class).getExtension("other");

        HandlerTest defaultExtension = ExtensionLoader.getExtensionLoader(HandlerTest.class).getDefaultExtension();

        System.out.println(handlerTest);

        System.out.println(defaultExtension);


    }
}
